package  
{
	import org.flixel.FlxG;
	import org.flixel.FlxSprite;
	import org.flixel.FlxState;
	
	/**
	 * ...
	 * @author maliu
	 */
	public class MenuState extends FlxState 
	{
		[Embed(source = "../res/title.png")]
		protected var p_menuImg:Class;
		
		public function MenuState() 
		{
			
		}
		
		/**
		 * State的初始化，框架自动调用
		 */
		override public function create():void
		{
			this.add(new FlxSprite(0, 0, p_menuImg));
		}
		override public function update():void
		{
			if (FlxG.keys.justPressed("X"))
			{
				FlxG.state = new GameState();
			}
			super.update();
		}
		
	}

}